package Util;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Anping Sec
 * @date 2022/05/11
 * description: 可转换的基本信息
 */
public abstract class ConvertBaseInfo<T> {

    /**
     * 顶级父级
     */
    private String rootPid;

    /**
     * 孩子节点
     */
    private List<T> childList = new ArrayList<T>();

    /**
     * 获取当前节点id
     *
     * @return
     */
    public abstract String getNodeId();

    /**
     * 获取当前节点的父亲节点id
     *
     * @return
     */
    public abstract String getNodeParentId();

    public String getRootPid() {
        return rootPid;
    }

    public void setRootPid(String rootPid) {
        this.rootPid = rootPid;
    }

    public List<T> getChildList() {
        return childList;
    }

    public void setChildList(List<T> childList) {
        this.childList = childList;
    }
}
